import request from '@/util/request';

export const getQuestionStatus = function(param){
	var url = '/questionnaire/getQuestionStatus';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getQuestion = function(param){
	var url = '/questionnaire/getQuestion';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const setQuestion = function(param){
	var url = '/questionnaire/setQuestion';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getVoteStatus = function(param){
	var url = '/Vote/getVoteStatus';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getVoteItem = function(param){
	var url = '/Vote/getVoteItem';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const vote = function(param){
	var url = '/Vote/vote';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const rank = function(param){
	var url = '/Vote/rank';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}